import { createRouter, createWebHistory } from 'vue-router';
import Index from '../views/index.vue';
import ProductList from '../views/product/list/index.vue';
import Talk from '../views/talk/index.vue';
import My from '../views/my/index.vue';
import MyInfo from '../views/my/info.vue';
import MyJob from '../views/my/job.vue';
import MyMobile from '../views/my/mobile.vue';
const routes = [
  {
    path: '/',
    name: 'Index',
    component: Index
  },{
    path: '/product/list',
    name: 'product/list',
    component: ProductList
  },{
    path: '/talk',
    name: 'talk',
    component: Talk
  },{
    path: '/my',
    name: 'my',
    component: My
  },{
    path: '/my/info',
    name: 'MyInfo',
    component: MyInfo
  },{
    path: '/my/job',
    name: 'MyJob',
    component: MyJob
  },{
    path: '/my/mobile',
    name: 'MyMobile',
    component: MyMobile
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;
